//
//  HDWifiTool.m
//  OTIS_MD
//
//  Created by 何达达 on 2017/8/21.
//  Copyright © 2017年 hedada. All rights reserved.
//

#import "HDWifiTool.h"
#import <SystemConfiguration/CaptiveNetwork.h>

@implementation HDWifiTool

+ (NSDictionary *)SSIDInfo

{
    NSArray *ifs = (__bridge_transfer NSArray *)CNCopySupportedInterfaces();
    
    NSDictionary *info = nil;
    
    for (NSString *ifnam in ifs) {
        
        info = (__bridge_transfer NSDictionary *)CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam);
        
        if (info && [info count]) {
            break;
        }
    }
    
    
    return info;
}
@end
